<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" class="iframe-h">

	<head>
		<meta charset="UTF-8">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>网站后台管理模版</title>
		<link rel="stylesheet" type="text/css" href="../../static/admin/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="../../static/admin/css/admin.css" />
	</head>

	<body>
		<div class="wrap-container clearfix">
				<div class="column-content-detail">
					<form class="layui-form" action="">
						<div class="layui-form-item">
							<div class="layui-inline tool-btn">
								<button class="layui-btn layui-btn-small layui-btn-normal addBtn" data-name="产品添加" data-url="/admin/productAdd"><i class="layui-icon">&#xe654;</i></button>
								<button class="layui-btn layui-btn-small layui-btn-danger delBtn"  data-url="/admin/ajax/delProduct"><i class="layui-icon">&#xe640;</i></button>
								<button class="layui-btn layui-btn-small layui-btn-warm refBtn" data-url="/"><i class="layui-icon">&#x1002;</i></button>
							</div>

						</div>
					</form>
					<div class="layui-form" id="table-list">
						<table class="layui-table" lay-even lay-skin="nob">
							<colgroup>
								<col width="50">
								<col class="hidden-xs" width="100">
								<col width="100">
								<col width="100">
								<col>
								<col class="hidden-xs" width="150">
								<col class="hidden-xs" width="150">
								<col width="80">
								<col width="150">
							</colgroup>
							<thead>
								<tr>
									<th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></th>
									<th class="hidden-xs">ID</th>
									<th>名称</th>
									<th>库存</th>
									<th>类型</th>
									<th class="hidden-xs">添加时间</th>
									<th class="hidden-xs">产品分类</th>
									<th>状态</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<tr th:each="list : ${pagelist.list}">
									<td><input type="checkbox" name="" lay-skin="primary" th:data-id="${list.pdId}"></td>
									<td class="hidden-xs" th:text="${list.pdId}">1</td>
									<td th:text="${list.pdName}">玩具</td>
									<td><a class="layui-btn layui-btn-mini layui-btn-normal" th:if="${list.pdType == 0}" th:text="${list.stNum}">100</a><a class="layui-btn layui-btn-mini layui-btn-normal" th:if="${list.pdType == 1}" th:text="${list.pdGdNum}">0</a></td>
									<td><a class="layui-btn layui-btn-mini layui-btn-normal" th:if="${list.pdType == 0}" th:text="卡密">100</a><a class="layui-btn layui-btn-mini layui-btn-warm" th:if="${list.pdType == 1}">固定</a></td>
									<td class="hidden-xs" th:text="${#dates.format(list.pdAddtime,'yyyy-MM-dd')}">1989-10-14</td>
									<td class="hidden-xs" th:text="${list.clName}">产品分类</td>
									<td><button class="layui-btn layui-btn-mini layui-btn-normal" th:if="${list.pdState == 1}">上架</button><button class="layui-btn layui-btn-mini layui-btn-warm" th:if="${list.pdState == 0}">下架</button></td>
									<td>
										<div class="layui-inline">
											<button class="layui-btn layui-btn-small layui-btn-normal edit-btn" th:data-id="${list.pdId}" data-name="产品修改" data-url="/admin/productEdit"><i class="layui-icon">&#xe642;</i></button>
											<button class="layui-btn layui-btn-small layui-btn-danger del-btn" th:data-id="${list.pdId}" data-url="/admin/ajax/delProduct"><i class="layui-icon">&#xe640;</i></button>
										</div>
									</td>
								</tr>
							</tbody>
						</table>
						<div class="page-wrap">
							<ul class="pagination" th:utext="${pagelist.page}">
								<!--<li class="disabled"><span>«</span></li>-->
								<!--<li class="active"><span>1</span></li>-->
								<!--<li>-->
									<!--<a href="#">2</a>-->
								<!--</li>-->
								<!--<li>-->
									<!--<a href="#">»</a>-->
								<!--</li>-->
							</ul>
						</div>
					</div>
				</div>
		</div>
		<script src="../../static/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../static/admin/js/common.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>